[Top] [Prev] [Next] [Bottom] [Contents]

The Anatomy of the Population Callback Structure

Population Callback Prototype

The population callback function prototype is defined in include/WorkingDialog.h as:

typedef void (*PopulationCallback) SUTPROTO((
	void * 			wid, 
	void *			ClientData, 
	SaCallbackStruct			*data
	));
The SUTPROTO macro allows for compilation in ANSI as well as old K&R style. The parameters for a population callback are:

The data contained in the Callback Structure (SaCallbackStruct), is read-only and should not be modified.

The Callback Structure

The SaCallbackStruct structure is defined in include/WorkingDialog.h as:

typedef struct {
	int reason;
	XEvent *event;
	SaDataStruct *groups;
	int nGroups;
	} SaCallbackStruct;
The Fields in the SaCallbackStruct structure are:

The Data Structure

The SaDataStruct structure is defined in include/WorkingDialog.h as:

typedef struct {
	char ***data;
	long nRows;
	int nCols;
	int *colWidth;
	int *maxColWidth;
	int *colCodes;
	int *colFormat;
	char **columnTitles;
	void *options;
} SaDataStruct;
The Fields in the SaCallbackStruct structure are:

Examples of Population Callbacks can be found in $SAPPHIRE/client/src/SaHtmlC.c.



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.